<%@ page contentType="text/html; charset=Windows-31J" language="java" %>
<%@ include file="../inc/common.jsp" %>
<html:html locale="true">
<HEAD>
	<html:base/>
	<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
	<TITLE><%=Globals.get("WEB_PAGETITLE")%></TITLE>
<SCRIPT language="JavaScript" >
	function openAdd() {
		<bean:define id="staffId" name="LoginStaff" property="staffId" type="java.lang.Integer" scope="session" />
		var win1 = window.open("dailyReport_add_workItem.do?addStaffId=<%=staffId%>", "selector", "width=450, height=600, scrollbars=yes");
	}
</SCRIPT>
</HEAD>
<BODY BGCOLOR=<%=Globals.get("WEB_BODY_BGCOLOR")%> LINK=<%=Globals.get("WEB_BODY_LINK")%> VLINK=<%=Globals.get("WEB_BODY_VLINK")%>>
<html:form action="/dailyReport_add_confirm">
<CENTER>
<BR><H4>
日報登録画面
<logic:greaterThan name="DoDailyReportActionForm" property="dailyReportId" value="0">
<font color=FF0000>（訂正）</font>
</logic:greaterThan>
</H4><HR><BR>
</CENTER>
<html:hidden name="DoDailyReportActionForm" property="dailyReportId" />
<TABLE cellpadding="1" cellspacing="1" border="1">
<TR>
	<TH ALIGN="left">氏名</TH>
	<TD><bean:write name="LoginStaff" property="name" /></TD>
</TR>
<TR>
	<TH ALIGN="left">作業日</TH>
	<TD>
		<bean:write name="DoDailyReportActionForm" property="workDateY" />年
		<bean:write name="DoDailyReportActionForm" property="workDateM" />月
		<bean:write name="DoDailyReportActionForm" property="workDateD" />日
	</TD>
</TR>
<html:hidden name="DoDailyReportActionForm" property="workDateY" />
<html:hidden name="DoDailyReportActionForm" property="workDateM" />
<html:hidden name="DoDailyReportActionForm" property="workDateD" />
<TR>

	<TH ALIGN="left">作業時間</TH>
	<TD>
		<html:select property="workingStartHoursH" >
			<html:options name="systemCalendar" property="systemHour" labelProperty="systemHour" labelName="systemCalendar" />
		</html:select>時
		<html:select property="workingStartHoursM" >
			<html:options name="systemCalendar" property="systemPropertyMinute" labelProperty="systemLabelMinute" labelName="systemCalendar" />
		</html:select>分～
		<html:select property="workingEndHoursH" >
			<html:options name="systemCalendar" property="systemHour" labelProperty="systemHour" labelName="systemCalendar" />
		</html:select>時
		<html:select property="workingEndHoursM" >
			<html:options name="systemCalendar" property="systemPropertyMinute" labelProperty="systemLabelMinute" labelName="systemCalendar" />
		</html:select>分
	</TD>
</TR>
</TABLE><BR>



<B>●作業内容</B>
<html:submit property="add" value="追加" onclick="openAdd()" /><html:submit property="clearHours" value="ｸﾘｱ" />
<TABLE border="1">
<TR>
	<TH>ﾌﾟﾛｼﾞｪｸﾄ名</TH>
	<TH>作業項目</TH>
	<TH>作業時間(h)</TH>
	<TH>項目区分</TH>
</TR>
<logic:iterate id="workItemList1" name="workItemList" indexId="index">
<TR>
	<TD>
		<bean:define id="projectId1" name="workItemList1" property="projectId" type="java.lang.Integer" />
		<logic:iterate id="projects" name="projectList" scope="session">
			<bean:define id="projectId2" name="projects" property="projectId" type="java.lang.Integer" />
			<bean:define id="projectName" name="projects" property="name" />
			<%if(projectId1.intValue()==projectId2.intValue())%><%=projectName%><%;%>
		</logic:iterate>
	</TD>
	<TD><bean:write name="workItemList1" property="name" /></TD>
	<TD>
		<bean:define id="workItemId1" name="workItemList1" property="workItemId" type="java.lang.Integer" />
		<logic:iterate id="dailyReportWorkItem1" name="dailyReportWorkItem">
			<bean:define id="workItemId2" name="dailyReportWorkItem1" property="workItemId" type="java.lang.Integer" />
			<%if(workItemId1.intValue()==workItemId2.intValue()){%>
				<html:select name="dailyReportWorkItem1" property="workingHours" indexed="true" >
					<html:options name="systemCalendar" property="systemTime" labelProperty="systemTime" labelName="systemCalendar" />
				</html:select> h
				<html:hidden name="dailyReportWorkItem1" property="workItemId" indexed="true" />
			<%}%>
		</logic:iterate>
	</TD>
	<TD>
		<logic:equal name="workItemList1" property="addStaffId" value="0">線表項目</logic:equal>
		<logic:notEqual name="workItemList1" property="addStaffId" value="0">ﾕｰｻﾞ追加項目</logic:notEqual>
	</TD>
</TR>
</logic:iterate>
</TABLE><BR>

<B>●あなたが追加した作業内容</B>
<TABLE border="1">
<TR>
	<TH>ﾌﾟﾛｼﾞｪｸﾄ名</TH>
	<TH>作業項目</TH>
	<TH>作業時間(h)</TH>
	<TH>項目区分</TH>
</TR>
<logic:iterate id="pjWorkItemList" name="pjWorkItemList" indexId="index" scope="session" >
<TR>
	<TD>
		<bean:define id="projectId1" name="pjWorkItemList" property="projectId" type="java.lang.Integer" />
		<logic:iterate id="projects" name="projectList">
			<bean:define id="projectId2" name="projects" property="projectId" type="java.lang.Integer" />
			<bean:define id="projectName" name="projects" property="name" />
			<%if(projectId1.intValue()==projectId2.intValue())%><%=projectName%><%;%>
		</logic:iterate>
	</TD>
	<TD><bean:write name="pjWorkItemList" property="name" /></TD>
	<TD>
		<logic:iterate id="pjDailyReportWorkItemList1" name="pjDailyReportWorkItemList" offset="index" length="1" scope="session">
			<html:select name="pjDailyReportWorkItemList1" property="workingHours" indexed="true">
				<html:options name="systemCalendar" property="systemTime" labelProperty="systemTime" labelName="systemCalendar" />
			</html:select> h
		</logic:iterate>
	</TD>
	<TD>ﾕｰｻﾞ追加項目</TD>
</TR>
</logic:iterate>
</TABLE><BR>



<TABLE border="0">
<TR>
	<TH ALIGN="left">●作業内容詳細</TH>
</TR>
<TR>
<TD><html:textarea property="workDetail" cols="70" rows="10" /></TD>
</TR>
</TABLE><BR>

<!--
<B>●進行状況</B><html:submit property="clearCompleteness" value="ｸﾘｱ" />
<TABLE border="1">
<TR>
	<TH>ﾌﾟﾛｼﾞｪｸﾄ名</TH>
	<TH>作業項目</TH>
	<TH>完成度(%)</TH>
	<TH>項目区分</TH>
</TR>
<logic:iterate id="workItemList2" name="workItemList" indexId="index">
<TR>
	<TD>
		<bean:define id="projectId1" name="workItemList2" property="projectId" type="java.lang.Integer" />
		<logic:iterate id="projects" name="projectList">
			<bean:define id="projectId2" name="projects" property="projectId" type="java.lang.Integer" />
			<bean:define id="projectName" name="projects" property="name" />
			<%if(projectId1.intValue()==projectId2.intValue())%><%=projectName%><%;%>
		</logic:iterate>
	</TD>
	<TD>
		<bean:write name="workItemList2" property="name" />
	</TD>
	<TD>
		<bean:define id="workItemId1" name="workItemList2" property="workItemId" type="java.lang.Integer" />
		<logic:iterate id="dailyReportWorkItem2" name="dailyReportWorkItem">
			<bean:define id="workItemId2" name="dailyReportWorkItem2" property="workItemId" type="java.lang.Integer" />
			<%if(workItemId1.intValue()==workItemId2.intValue()){%>
				<html:select name="dailyReportWorkItem2" property="completeness" indexed="true" >
					<html:options name="systemCalendar" property="systemPercent" labelProperty="systemPercent" labelName="systemCalendar" />
				</html:select> %
			<%}%>
		</logic:iterate>
	</TD>
	<TD>
		<logic:equal name="workItemList2" property="addStaffId" value="0">線表項目</logic:equal>
		<logic:notEqual name="workItemList2" property="addStaffId" value="0">ﾕｰｻﾞ追加項目</logic:notEqual>
	</TD>
</TR>
<html:hidden name="workItemList2" property="workItemId" indexed="true"/>
</logic:iterate>
</TABLE><BR>


<B>●あなたが追加した作業の進行状況</B>
<TABLE border="1">
<TR>
	<TH>ﾌﾟﾛｼﾞｪｸﾄ名</TH>
	<TH>作業項目</TH>
	<TH>完成度(%)</TH>
	<TH>項目区分</TH>
</TR>
<logic:iterate id="pjWorkItemList" name="pjWorkItemList" indexId="index" scope="session" >
<TR>
	<TD>
		<bean:define id="projectId1" name="pjWorkItemList" property="projectId" type="java.lang.Integer" />
		<logic:iterate id="projects" name="projectList">
			<bean:define id="projectId2" name="projects" property="projectId" type="java.lang.Integer" />
			<bean:define id="projectName" name="projects" property="name" />
			<%if(projectId1.intValue()==projectId2.intValue())%><%=projectName%><%;%>
		</logic:iterate>
	</TD>
	<TD>
		<bean:write name="pjWorkItemList" property="name" />
	</TD>
	<TD>
		<logic:iterate id="pjDailyReportWorkItemList2" name="pjDailyReportWorkItemList" offset="index" length="1" scope="session">
			<html:select name="pjDailyReportWorkItemList2" property="completeness" indexed="true" >
				<html:options name="systemCalendar" property="systemPercent" labelProperty="systemPercent" labelName="systemCalendar" />
			</html:select> %
		</logic:iterate>
	</TD>
	<TD>ﾕｰｻﾞ追加項目</TD>
</TR>
</logic:iterate>
</TABLE><BR>
 -->
 
<TABLE border="0">
<TR>
	<TH ALIGN="left">●問題点</TH>
</TR>
<TR>
	<TD><html:textarea property="problem" cols="70" rows="10" /></TD>
</TR>
</TABLE><BR>


<TABLE border="0">
<TR>
	<TH ALIGN="left">●TODO</TH>
</TR>
<TR>
	<TD><html:textarea property="toDo" cols="70" rows="10" /></TD>
</TR>
</TABLE>
<BR>

<TABLE border="0">
<TR>
	<TH ALIGN="left">●感想</TH>
</TR>
<TR>
	<TD><html:textarea property="comment" cols="70" rows="10" /></TD>
</TR>
</TABLE>
<BR><BR>

<TABLE border="0">
<TR>
	<TD>
		<html:submit property="confirm" value="確定" />
	</TD>
</TR>
</TABLE><br>

<B>●非表示作業内容</B>
<html:submit property="display" value="表示" />
<TABLE border="1">
<TR>
	<TH>表示ﾁｪｯｸ</TH>
	<TH>ﾌﾟﾛｼﾞｪｸﾄ名</TH>
	<TH>作業項目</TH>
</TR>
<logic:iterate id="nonDisplayWorkItemList1" name="nonDisplayWorkItemList" indexId="index" scope="session">
<TR>
	<TD align="center">
		<bean:define id="workItemId1" name="nonDisplayWorkItemList1" property="workItemId" type="java.lang.Integer" />
		<bean:define id="workItemId2" value="0" type="java.lang.String" />
		<logic:iterate id="workItemList1" name="workItemList">
		<logic:equal name="workItemList1" property="workItemId" value="<%=String.valueOf(workItemId1.intValue())%>">
			<%workItemId2 = String.valueOf(workItemId1.intValue());%>
		</logic:equal>
		</logic:iterate>
		<html:checkbox name="nonDisplayWorkItemList1" property="workItemId" value="<%=workItemId2%>" indexed="true"/>
	</TD>
	<TD>
		<bean:define id="projectId1" name="nonDisplayWorkItemList1" property="projectId" type="java.lang.Integer" />
		<logic:iterate id="projects" name="projectList" scope="session">
			<bean:define id="projectId2" name="projects" property="projectId" type="java.lang.Integer" />
			<bean:define id="projectName" name="projects" property="name" />
			<%if(projectId1.intValue()==projectId2.intValue())%><%=projectName%><%;%>
		</logic:iterate>
	</TD>
	<TD>
		<bean:write name="nonDisplayWorkItemList1" property="name" />
	</TD>
</TR>
</logic:iterate>
</TABLE><BR>

</html:form>
<BR>
<H5><html:link forward="site_top" target="_parent">TOPに戻る</html:link></H5>
</BODY>
</html:html>
